
package com.classes;

import java.nio.ByteBuffer;

public class Version {
    /**
     * 版本
     *
     * @param buffer
     * @return
     */
    public static String version(ByteBuffer buffer) {
        StringBuilder sb = new StringBuilder("次版本：");
        sb.append(Integer.toHexString(buffer.get()));
        sb.append(Integer.toHexString(buffer.get()) + "  主版本：");
        sb.append(Integer.toHexString(buffer.get()));
        sb.append(Integer.toHexString(buffer.get()));
        return sb.toString();
    }
}
